package org.dalmatian.common.core.utils;

import org.noear.solon.validation.ValidUtils;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;

/**
 * Validator 校验框架工具
 *
 * @author Lion Li
 */
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class ValidatorUtils {

    public static <T> void validate(T object, Class<?>... groups) {
        ValidUtils.validateEntity(object, groups);
    }

}
